Skip to main content
Version: 4.2.1

dReveal Data Strucuture

Overview

dReveal provides a structure to get the form collection items mapped into it for using of Grid and Dashboard, among others.

dReveal Data Structure

Controller

In the controller action, you must include the Model Binder DRevealDataStructureBinder found in InfoArch.Web.Mvc, this is responsible for building an object of the class DRevealDataStructure that contains all the submitted fields of the form. In the controller action, ensure that you include the Model Binder DRevealDataStructureBinder located in InfoArch.Web.Mvc. This binder is responsible for constructing an object of the DRevealDataStructure class, which contains all the submitted form fields.

[HttpPost]
public ActionResult DashboardReport([ModelBinder(typeof(DRevealDataStructureBinder))] DRevealDataStructure reportState)
{
...
return View();
}

The workflow of the model binder is as follows:

Model Binder